# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ListSelectDialog.ui'
#
# Created: Fri Dec 23 17:36:05 2011
#      by: PyQt4 UI code generator 4.8.6
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_ListSelectDialog(object):
    def setupUi(self, ListSelectDialog):
        ListSelectDialog.setObjectName(_fromUtf8("ListSelectDialog"))
        ListSelectDialog.resize(356, 324)
        ListSelectDialog.setMinimumSize(QtCore.QSize(356, 324))
        ListSelectDialog.setWindowTitle(QtGui.QApplication.translate("ListSelectDialog", "Select elements from the list", None, QtGui.QApplication.UnicodeUTF8))
        self.gridLayout = QtGui.QGridLayout(ListSelectDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.elementsList = QtGui.QListWidget(ListSelectDialog)
        self.elementsList.setObjectName(_fromUtf8("elementsList"))
        self.gridLayout.addWidget(self.elementsList, 0, 0, 3, 1)
        self.selectAllBtn = QtGui.QPushButton(ListSelectDialog)
        self.selectAllBtn.setText(QtGui.QApplication.translate("ListSelectDialog", "Select All", None, QtGui.QApplication.UnicodeUTF8))
        self.selectAllBtn.setObjectName(_fromUtf8("selectAllBtn"))
        self.gridLayout.addWidget(self.selectAllBtn, 0, 1, 1, 1)
        self.selectNoneBtn = QtGui.QPushButton(ListSelectDialog)
        self.selectNoneBtn.setText(QtGui.QApplication.translate("ListSelectDialog", "Select None", None, QtGui.QApplication.UnicodeUTF8))
        self.selectNoneBtn.setObjectName(_fromUtf8("selectNoneBtn"))
        self.gridLayout.addWidget(self.selectNoneBtn, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 210, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(ListSelectDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2)

        self.retranslateUi(ListSelectDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ListSelectDialog.onAccept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ListSelectDialog.reject)
        QtCore.QObject.connect(self.selectAllBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), ListSelectDialog.onSelectAll)
        QtCore.QObject.connect(self.selectNoneBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), ListSelectDialog.onSelectNone)
        QtCore.QMetaObject.connectSlotsByName(ListSelectDialog)

    def retranslateUi(self, ListSelectDialog):
        pass


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    ListSelectDialog = QtGui.QDialog()
    ui = Ui_ListSelectDialog()
    ui.setupUi(ListSelectDialog)
    ListSelectDialog.show()
    sys.exit(app.exec_())

